package lukasik.ui;

import javax.enterprise.event.Observes;
import javax.inject.Inject;

import lukasik.App;

import org.jboss.weld.environment.se.StartMain;
import org.jboss.weld.environment.se.events.ContainerInitialized;

public class ConsoleUI
{

    App app;

    @Inject
    public ConsoleUI( App app )
    {
        this.app = app;
    }

    public void start( @Observes ContainerInitialized event )
    {
        app.run();
    }

    public static void main( String[] args )
    {
        new StartMain( args ).go();
    }
}
